//
//  LineOrdersViewController.m
//  DA_V
//
//  Created by 中亿世联前台 on 15/4/27.
//  Copyright (c) 2015年 zhouhai. All rights reserved.
//

#import "LineOrdersViewController.h"
#import "LineOrderTableViewCell.h"
#import "InterFace.h"

@interface LineOrdersViewController ()<UITableViewDataSource,UITableViewDelegate>
@property (nonatomic, strong) UITableView *myTbleView;
@end

@implementation LineOrdersViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self createTableView];
}


#pragma -mark 创建Tableview{
- (void)createTableView{

    self.myTbleView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
    self.myTbleView.dataSource = self;
    self.myTbleView.delegate = self;
    [self.view addSubview:self.myTbleView];
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 2;
}

// Row display. Implementers should *always* try to reuse cells by setting each cell's reuseIdentifier and querying for available reusable cells with dequeueReusableCellWithIdentifier:
// Cell gets various attributes set automatically based on table (separators) and data source (accessory views, editing controls)

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    static NSString *indertStr = @"noZhiFuCell";
    LineOrderTableViewCell *nozhifuCell = [tableView dequeueReusableCellWithIdentifier:indertStr];
    if (nozhifuCell == nil) {
        nozhifuCell = [[LineOrderTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:indertStr];
    }
    return nozhifuCell;
}
@end
